﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_ProductInfoList.aspx.cs"
    Inherits="SaleSystem.BaseData.frm_ProductInfoList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server">
    </ext:PageManager>
    <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
        Layout="Column" ShowBorder="false" ShowHeader="false" Title="Panel">
        <Items>
            <ext:Panel runat="server" ID="PanelLeft" Width="250px" ShowBorder="false" ShowHeader="false">
                <Items>
                    <ext:Tree ID="tv_Menu" OnNodeCommand="tv_Menu_NodeCommand" OnNodeCheck="tv_Menu_NodeCheck"
                        Width="250px" ShowHeader="false" Title="Tree(Inline)" runat="server" Expanded="true"
                        AutoHeight="true" Height="700px">
                        <Toolbars>
                            <ext:Toolbar runat="server">
                                <Items>
                                    <ext:Button runat="server" ID="bn_Reload" Icon="Reload" OnClick="bn_ReloadClick"
                                        Text="刷新">
                                    </ext:Button>
                                    <ext:Button runat="server" ID="bn_AddSort" Icon="FolderAdd" Text="新增" OnClick="bn_AddClick">
                                    </ext:Button>
                                    <ext:Button runat="server" ID="bn_EditSort" Icon="FolderEdit" Text="编辑" OnClick="bn_EditClick">
                                    </ext:Button>
                                    <ext:Button runat="server" ID="bn_Delete" Icon="FolderDelete" Text="删除" OnClick="bn_DeleteClick"
                                        ConfirmIcon="Question" ConfirmTarget="Top" ConfirmText="确认删除您选择的产品类别？" ConfirmTitle="删除确认">
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </Toolbars>
                    </ext:Tree>
                </Items>
            </ext:Panel>
            <ext:Panel runat="server" ID="PanelMain" ShowHeader="false" ShowBorder="true" AutoScroll="true"  Width="800px"
                AutoWidth="true" AutoHeight="true">
                <Toolbars>
                    <ext:Toolbar runat="server">
                        <Items>
                            <ext:Button runat="server" ID="bn_ReloadProduct" Icon="FolderFind" Type="Submit" OnClick="bn_ReloadProductClick"
                                Text="查询">
                            </ext:Button>
                            <ext:Button runat="server" ID="bn_AddProduct" Icon="Add" Text="新增">
                            </ext:Button> 
                            <ext:Button runat="server" ID="bn_DeleteProduct" Icon="Delete" Text="删除" OnClick="bn_DeleteProductClick"
                                ConfirmIcon="Question" ConfirmTarget="Top" ConfirmText="确认删除您选择的产品信息？" ConfirmTitle="删除确认">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
                    <ext:Form runat="server" ID="SimpleForm1" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false" BodyPadding="5px" AutoHeight="true">
                        <Rows>
                            <ext:FormRow>
                                <Items>
                                    <ext:TextBox runat="server" ID="tb_PInfo_Code" Label="产品编码" Width="150px" MaxLength="100" TabIndex="1">
                                    </ext:TextBox>
                                    <ext:TextBox runat="server" ID="tb_PInfo_Name" Label="产品名称" Width="150px" MaxLength="100" TabIndex="2">
                                    </ext:TextBox>
                                </Items>
                            </ext:FormRow>
                            <ext:FormRow>
                                <Items>
                                    <ext:TextBox runat="server" ID="tb_PInfo_Number" Label="号码" Width="150px" MaxLength="100" TabIndex="3">
                                    </ext:TextBox>
                                    <ext:TextBox runat="server" ID="tb_PInfo_Pwd" Label="密码" Width="150px" MaxLength="100" TabIndex="4">
                                    </ext:TextBox>
                                </Items>
                            </ext:FormRow>
                            <ext:FormRow>
                                <Items>
                                    <ext:TextBox runat="server" ID="tb_PInfo_CH" Label="串号" Width="150px" MaxLength="100" TabIndex="5">
                                    </ext:TextBox>
                                </Items>
                            </ext:FormRow>
                        </Rows>
                    </ext:Form>
                    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="产品信息列表" 
                        IsDatabasePaging="true" DataKeyNames="PInfo_Id,PInfo_Name" EnableRowNumber="true"
                        EnableCheckBoxSelect="true" OnRowCommand="gv_List_RowCommand" AllowPaging="true"
                        OnPageIndexChange="gv_List_PageIndexChange" OnRowDataBound="gv_List_RowDataBound">
                        <Columns>
                            <ext:BoundField ColumnID="PInfo_Code" DataField="PInfo_Code" DataTooltipField="PInfo_Code"
                                HeaderText="产品编码" Width="100px" />
                            <ext:BoundField ColumnID="PInfo_Name" DataField="PInfo_Name" DataTooltipField="PInfo_Name"
                                HeaderText="产品名称" Width="100px" />
                            <ext:BoundField ColumnID="PSort_Name" DataField="PSort_Name" DataTooltipField="PSort_Name"
                                HeaderText="产品类别" Width="80px" />
                            <ext:BoundField ColumnID="PInfo_Number" DataField="PInfo_Number" DataTooltipField="PInfo_Number"
                                HeaderText="号码" Width="100px" />
                            <ext:BoundField ColumnID="PInfo_Pwd" DataField="PInfo_Pwd" DataTooltipField="PInfo_Pwd"
                                HeaderText="密码" Width="60px" />
                            <ext:BoundField ColumnID="PInfo_CH" DataField="PInfo_CH" DataTooltipField="PInfo_CH"
                                HeaderText="串号" Width="80px" />
                            <ext:BoundField ColumnID="PInfo_Price" DataField="PInfo_Price" DataTooltipField="PInfo_Price"
                                HeaderText="零售价" Width="70px" />
                            <ext:LinkButtonField ColumnID="eidt" CommandName="edit" Text="编辑" HeaderText="编辑"
                                Width="60px" />
                            <ext:LinkButtonField ColumnID="delete" CommandName="Delete" ConfirmIcon="Question"
                                ConfirmText="确认删除此信息？" Text="删除" HeaderText="删除" Width="60px" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true" EnableConfirmOnClose="true"
        Title="新增产品类别" IFrameUrl="about:blank" Target="Top" IsModal="true" Width="500px" Height="250px">
    </ext:Window>
    <ext:Window runat="server" ID="win_Content2" Popup="false" EnableIFrame="true" EnableConfirmOnClose="true"
        Title="新增产品" IFrameUrl="about:blank" Target="Parent" IsModal="true"
        Width="500px" Height="500px">
    </ext:Window>
    </form>
</body>
</html>
